package com.atguigu.system.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2025-03-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("biz_inventory_info")
@ApiModel(value="InventoryInfo对象", description="")
public class InventoryInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "inventory_id", type = IdType.AUTO)
    private Integer inventoryId;

    @ApiModelProperty(value = "关联的 SKU ID")
    private Integer skuId;

    @ApiModelProperty(value = "当前库存数量")
    private Integer currentStock;

    @ApiModelProperty(value = "库存更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "逻辑删除标志，0 表示未删除，1 表示已删除")
    @TableLogic
    private Integer isDeleted;

    /**
     * 入库类型
     */
    @TableField(exist = false)
    private String reason;

    /**
     * 数量变更
     */
    @TableField(exist = false)
    private Integer stockChange;

    /**
     * 库存信息
     */
    @TableField(exist = false)
    private String skuName;
}
